import java.io.IOException;

public class Main {


	private static String recipient = "192.168.0.82";
	private static int sendPort = 6001;
	private static int listenPort = 6000;
	
	public static void main(String[] args) throws IOException {
		
		Sender sender = new Sender(recipient, sendPort);
		Listener listener = new Listener(listenPort, sender);
		
		sender.setRecipientAtServer("192.168.0.69");
		sender.setSendingPortAtServer(1234);
		sender.setIntervalAtServer(5000);
		sender.setSendingPortAtServer(6000);
		
		System.out.println("gesendet");
		
		Thread t0 = new Thread( listener );
		t0.run();

	}

}
